﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Sigil.NonGeneric;

namespace SigilTests
{
	public partial class Break
	{
		[TestMethod]
		public void SimpleNonGeneric()
		{
			var e1 = Emit.NewDynamicMethod(typeof(void), Type.EmptyTypes, "E1");
			e1.LoadConstant(123);
			e1.Break();
			e1.Pop();
			e1.Return();

			var d1 = e1.CreateDelegate<Action>();

			d1();
		}
	}
}